CC = g++
CFLAGS = -g -I$(HOME)/include -lpthread

ALL =	galois.o jer_gen_t.o jer_slices.o bitmatrices.o reed_sol.o jer_matrix.o

all: $(ALL)

clean:
	rm -f core *.o $(ALL) a.out

.SUFFIXES: .cpp .o
.cpp.o:
	$(CC) $(CFLAGS) -c $*.cpp

galois.o: galois.h
jer_matrix.o: jerasure.h
jer_gen_t.o: jerasure.h
jer_slices.o: jerasure.h
bitmatrices.o: jerasure.h
reed_sol.o: jerasure.h
